//package com.hikvision.cms.interval;
//
//import com.hikvision.cms.sender.TopicSender;
//import org.apache.activemq.command.ActiveMQTextMessage;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.stereotype.Service;
//
//import javax.jms.JMSException;
//import javax.jms.TextMessage;
//import javax.jms.Topic;
//
//
//@Service
//public class DetectionSender
//        extends TopicSender {
//    private static final Logger log = LoggerFactory.getLogger(com.hikvision.cms.interval.DetectionSender.class);
//    private static Topic detectionTopic = (Topic) new Object();
//
//
//    public void sendDetection() {
//        ActiveMQTextMessage activeMQTextMessage = new ActiveMQTextMessage();
//        String json = "{ \"heartbeat\" : \"tstLink\"}";
//        try {
//            activeMQTextMessage.setText(json);
//        } catch (JMSException e) {
//            e.printStackTrace();
//        }
//        publishTextMessage(detectionTopic, (TextMessage) activeMQTextMessage);
//    }
//}
